<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <include file="Public:resource"/>
    <title>预存对账查询结果</title>
</head>
<body>
<div class="container" style="margin-bottom: 20px;">
    <include file="Public:top" title="查询结果"/>
    <if condition="json.retcode eq -1"><!-- -1表示没找到用户-->
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 c-gray" style="margin-top: 50px;font-size: large"
                 align="center">
                {$json.msg}
            </div>
        </div>
        <else/>
        <empty name="json.data.list">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 c-gray" style="margin-top: 50px;font-size: large"
                     align="center">
                    用户"{$json.userid}"在{$json.year}年没有预存记录
                </div>
            </div>
            <else/>

            <div class="row" style="margin-top: 10px;" align="center">
                <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12" style="font-size: medium">
                    水费账号:{$json.userid}
                </div>
            </div>

            <include file="Public:bar" text="查找到以下结果"/>

            <foreach name="json.data.list" item="order">
                <div class="row" style="padding: 10px 0px 10px 0px;border-bottom: darkgray solid 1px;">
                    <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                水费账号:
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                {$order.userid}
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                单据日期:
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                {$order.billdate}
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                单据编号:
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                {$order.billno}
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                摘要信息:
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                {$order.summary}
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                充值金额:
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                <span class="c-red">￥
                                    <script>
                                        document.write(FenToYuan('{$order.inmoney}'));
                                    </script>
                                    元
                                </span>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                扣费金额:
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                               <span class="c-red">￥
                                    <script>
                                        document.write(FenToYuan('{$order.outmoney}'));
                                    </script>
                                   元
                                </span>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                账户余额:
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                <span class="c-red">￥
                                    <script>
                                        document.write(FenToYuan('{$order.balance}'));
                                    </script>
                                   元
                                </span>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                充值途径:
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                <switch name="order.way">
                                    <case value="1">营业厅</case>
                                    <case value="2">自助终端</case>
                                    <case value="3">银联代扣</case>
                                    <case value="4">第三方代充</case>
                                </switch>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6" align="center">
                                支付方式:
                            </div>
                            <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 c-gray">
                                <switch name="order.paytype">
                                    <case value="1">现金</case>
                                    <case value="2">银联</case>
                                    <case value="3">微信</case>
                                    <case value="4">支付宝</case>
                                </switch>
                            </div>
                        </div>
                    </div>
                </div>
            </foreach>
        </empty>
    </if>

</div>
</body>
</html>